package com.neighbor.neighborhooduser.service.impl;

import com.neighbor.neighborhooduser.pojo.PostComments;
import com.neighbor.neighborhooduser.dao.IPostCommentsDao;
import com.neighbor.neighborhooduser.service.IPostCommentsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 帖子评论表 服务实现类
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
@Service
public class PostCommentsServiceImpl extends ServiceImpl<IPostCommentsDao, PostComments> implements IPostCommentsService {

    @Autowired
    IPostCommentsDao postCommentsDao;

    @Override
    public List<PostComments> getCommentsByPostId(Integer postId) {
        return postCommentsDao. getCommentsByPostId(postId);

    }
}
